<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<title>出库确认</title>
		<link type="text/css" href="http://localhost:10000/css/chuku.css" rel="stylesheet">
		<script type="text/javascript" src="http://localhost:10000/js/jquery-1.11.3.min.js"></script>
		<script>
			function getpage(page){
				var storeID = $("#storeID").val();
				var pageNum = $("#pageNum1").val();
				window.location = "selStores.do?pageNum="+pageNum+"&pageRows="+page+"&storeId="+storeID;
			}
			function lastpage(pageNum) {
				var storeID = $("#storeID").val();
				var pageRows = $("#pageRows1").val();
				window.location = "selStores.do?pageNum="+pageNum+"&storeId="+storeID+"&pageRows="+pageRows;
			}
		</script>

	</head>
	<body>
		出库管理>>出库确认
		<hr>
		<form action="http://localhost:10000/chuku/selStores.do">
			<div class="table" style="color: #505ca0;">
				<table border="0" cellspacing="0" cellpadding="0">
					<tr>
						<td style="width: 10%" ;>仓库</td>
						<td>
							<select name="storeID" id="storeID">
								<option th:each="every:${session.stores}"
										th:text="${every.getStoreName()}"
										th:value="${every.getStoreID()}"
										th:selected="${every.getStoreID() == session.storeID}"></option>
							</select>
						</td>
					</tr>
					<tr>
						<td></td>
						<td><input type="submit" id="" name="" value="查询" /></td>
					</tr>
				</table>
			</div>
		</form>
		<div class="table1" style="color: #53a058;">
			<table border="0" cellspacing="0" cellpadding="0" style="background-color: #aedfb6;">
				<tr>
					<td>出库单号</td>
					<td>货主</td>
					<td>出库托盘个数</td>
					<td>仓库</td>
					<td>业务日期</td>
					<td>备注</td>
					<td>是否删除</td>
				</tr>

				<tbody   th:if="${session.pageInfo1!=null}" style="background-color: white;color: #303030;border: 1px solid #303030">
					<tr th:each="every:${session.pageInfo1.getList()} ">
						<td th:text="${every.get('billID')} == null?'null':${every.billID}"></td>
						<td th:text="${every.get('custName')} == null?'null':${every.custName}"></td>
						<td th:text="${every.get('count')} == null?'null':${every.count}"></td>
						<td th:text="${every.get('storeName')} == null?'null':${every.storeName}"></td>
						<td th:text="${every.get('billDate')} == null?'null':${every.billDate}"></td>
						<td th:text="${every.get('billNote')} == null?'null':${every.billNote}"></td>
						<td th:text="${every.get('billIsDel')} == null?'null':${every.billIsDel}"></td>
					</tr>
					<tr>
						<button type="button" th:value="${session.pageInfo1.getPageNum()>1?session.pageInfo1.getPageNum()-1:session.pageInfo1.getPageNum()}" onclick="lastpage(this.value)">上一页</button>
						<select name="" id="pageRows" onchange="getpage(this.value)">
							<option value="5" th:selected="${session.pageRows1 == 5}">5</option>
							<option value="10" th:selected="${session.pageRows1 == 10}">10</option>
							<option value="15" th:selected="${session.pageRows1 == 15}">15</option>
						</select>
						<button type="button" th:value="${session.pageInfo1.getPageNum()<session.pageInfo1.getSize()?session.pageInfo1.getPageNum()+1:session.pageInfo1.getPageNum()}" onclick="lastpage(this.value)">下一页</button>
					</tr>
				</tbody>
			</table>
			<input type="hidden" id="pageNum1" th:value="${session.pageNum1}">
			<input type="hidden" id="pageRows1" th:value="${session.pageRows1}">
		</div>

	</body>
</html>
